import {request1} from './request.js';

export function login_http(data) {
  const {username, password} = data;
  return request1({
    method: 'post',
    url: '/login',
    data: {
      username,
      password
    }
  })
}
export function login_http2(data) {
  const {username, password} = data;
  return request2({
    method: 'post',
    url: '/login',
    data: {
      username,
      password
    }
  })
}